package cn.stylefeng.guns.sys.modular.interfaceapproval.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.sys.modular.interfaceapproval.entity.Interfaceapproval;
import cn.stylefeng.guns.sys.modular.interfaceapproval.model.params.InterfaceapprovalParam;
import cn.stylefeng.guns.sys.modular.interfaceapproval.model.result.InterfaceapprovalResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 接口审批列表 服务类
 * </p>
 *
 * @author author
 * @since 2020-08-31
 */
public interface InterfaceapprovalService extends IService<Interfaceapproval> {

    /**
     * 新增
     *
     * @author author
     * @Date 2020-08-31
     */
    void add(InterfaceapprovalParam param);

    /**
     * 删除
     *
     * @author author
     * @Date 2020-08-31
     */
    void delete(InterfaceapprovalParam param);

    /**
     * 更新
     *
     * @author author
     * @Date 2020-08-31
     */
    void update(InterfaceapprovalParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author author
     * @Date 2020-08-31
     */
    InterfaceapprovalResult findBySpec(InterfaceapprovalParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author author
     * @Date 2020-08-31
     */
    List<InterfaceapprovalResult> findListBySpec(InterfaceapprovalParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author author
     * @Date 2020-08-31
     */
     LayuiPageInfo findPageBySpec(InterfaceapprovalParam param);

    /**
     * 批准
     * @param param
     * @return
     * @Date 2020-09-01
     */
     Integer updateApprove(Integer param);

    /**
     * 驳回
     * @param param
     * @return
     * @Date 2020-09-01
     */
    Integer updateReject(Integer param);

}
